// 导入基地址
import request from '@/utils/request'

// 获取用户的频道数据
export const ownChannel = () => {

    return request({
        url: '/v1_0/user/channels'

    })
}

// 获取所有频道数据
export const channelAll = () => {

    return request({
        url: '/v1_0/channels'

    })
}

// 删除用户频道
export const delChannel = (target) => {

    return request({
        url: `/v1_0/user/channels/${target}`,
        method: 'DELETE',
    })
}

// 新增用户频道
export const setChannel = (data) => {
    return request({
        url: '/v1_0/user/channels',
        method: 'put',
        data
    })

}